﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AuthExtensions
{
    public class AuthConfig
    {
        /// <summary>
        /// 签名KEY
        /// </summary>
        public string SigningKey { get; set; } = "TestJwtSecretalkshjdlkajslkdlkasjdajkls";

        public string ValidIssuer { get; set; } = "ValidIssuer";
        public string ValidAudience { get; set; } = "ValidAudience";

        /// <summary>
        /// 接收query token  参数为 access_token
        /// </summary>
        public bool QueryToken { get; set; } = false;

        /// <summary>
        /// messageHub
        /// </summary>
        public string[]? QueryPaths { get; set; }

        /// <summary>
        /// 过期时间 180分钟
        /// </summary>
        public int ExpirationMinutes { get; set; } = 180;
    }
}
